using RuoyiQuickLogin.Core;

namespace RuoyiQuickLogin
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void BtnSubmit_Click(object sender, EventArgs e)
        {
            var http = new RuoyiHttp();
            http.BaseUrl = TextBaseUrl.Text;
            http.Login(TextUsername.Text, TextPassword.Text);
            TextToken.Text = http.Token;
            Clipboard.SetDataObject(http.Token);
        }
    }
}